package com.chuyu.cy.exception;

import com.chuyu.cy.contants.ResponseCodeEnum;

/**
 * 自定义异常
 * @author 周小白
 */
public class CustomException extends RuntimeException{

    public CustomException(String message) {
        super(message);
    }

    public CustomException(ResponseCodeEnum responseCodeEnum) {
        super(responseCodeEnum.getMessage());
    }
}
